package cn.ccydrools.utils;

import java.sql.Connection;
import java.sql.DriverManager;

/***
 * @author hunter.d
 * @qq 657270652
 * @wx haitao-duan
 * @date 2021/3/19
 **/
public class ClickHouseUtil {

    private static Connection conn = null;
    private static final String ckDriver = "ru.yandex.clickhouse.ClickHouseDriver";
    private static final String ckUrl = "jdbc:clickhouse://node-3.51doit.cn:8123/default";


    public static Connection getClickHouseConnection() throws Exception {
        Class.forName(ckDriver);
        Connection conn = DriverManager.getConnection(ckUrl);
        return conn;
    }

}
